﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Principal.Master" AutoEventWireup="true" CodeBehind="Personas.aspx.cs" Inherits="SIP.Personas" %>
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="asp" %>
<%@ Register Src="ctrlFecha.ascx" TagName="ctrlFecha" TagPrefix="uc1" %>
<%--<%@ Register Src="~/Controles/OKMessageBox.ascx" TagName="OKMessageBox" TagPrefix="uc" %>--%>


<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
    <style type="text/css">
        .textEntry
        {}
    </style>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <asp:ScriptManager ID="ScriptManager1" runat="server">
</asp:ScriptManager>
    <br />
<%--    <uc:OkMessageBox ID="omb" runat="server" /> --%>    
    <asp:Table ID="Table1" runat="server" CssClass="Tabla" Width="500" HorizontalAlign="Center">
        <asp:TableHeaderRow CssClass="TablaHeader">
            <asp:TableHeaderCell ColumnSpan="2">
                Mantenimiento de Feligreses
            </asp:TableHeaderCell>
        </asp:TableHeaderRow>
        <asp:TableRow Height="22px">
            <asp:TableCell>
            </asp:TableCell>
            <asp:TableCell>
            </asp:TableCell>
        </asp:TableRow>
        <asp:TableRow>
            <asp:TableCell>Tipo Identificación</asp:TableCell>
            <asp:TableCell>
                <asp:DropDownList ID="ddlTipoIdentificacion" runat="server" CssClass="textEntry" 
                Width="250px" AutoPostBack="True" onselectedindexchanged="ddlTipoIdentificacion_SelectedIndexChanged" ></asp:DropDownList>
            </asp:TableCell>
        </asp:TableRow>
            <asp:TableRow>
                <asp:TableCell>
                Identificación
                </asp:TableCell>
                <asp:TableCell>
                    <asp:TextBox ID="mskCedula" runat="server" Width="105"></asp:TextBox>
                    <asp:MaskedEditExtender ID="Cedula" runat="server" MaskType="Number" TargetControlID="mskCedula" AutoComplete="False" Mask="9999999999">
                    </asp:MaskedEditExtender>
                    <asp:RequiredFieldValidator ID="RequiredFieldValidator7" runat="server" SkinID="Requerido"
                     ValidationGroup="v1" ControlToValidate="mskCedula"></asp:RequiredFieldValidator>
                    <asp:Label ID="lblFormato" runat="server" Text="Formato: X-XXXX-XXXX" Visible="False"></asp:Label>
               </asp:TableCell>
            </asp:TableRow>
        <asp:TableRow>
                <asp:TableCell>
                Nombre:
                </asp:TableCell>
                <asp:TableCell>
                    <asp:TextBox runat="server" ID="txtNombre" Width="320" />
                    <asp:RequiredFieldValidator ID="RequiredFieldValidator5" runat="server" SkinID="Requerido"
                    ValidationGroup="v1" ControlToValidate="txtNombre"></asp:RequiredFieldValidator>
                </asp:TableCell></asp:TableRow><asp:TableRow>
                <asp:TableCell>
                Primer Apellido:
                </asp:TableCell><asp:TableCell>
                    <asp:TextBox runat="server" ID="txtApellido1" Width="320" />
                    <asp:RequiredFieldValidator ID="RequiredFieldValidator4" runat="server" SkinID="Requerido"
                        ValidationGroup="v1" ControlToValidate="txtApellido1"></asp:RequiredFieldValidator>
                </asp:TableCell></asp:TableRow><asp:TableRow>
                <asp:TableCell>
                Segundo Apellido:
                </asp:TableCell><asp:TableCell>
                    <asp:TextBox runat="server" ID="txtApellido2" Width="320" />
                    <asp:RequiredFieldValidator ID="RequiredFieldValidator3" runat="server" SkinID="Requerido"
                     ValidationGroup="v1" ControlToValidate="txtApellido2"></asp:RequiredFieldValidator>
                </asp:TableCell></asp:TableRow><asp:TableRow>
                <asp:TableCell>
                Fecha Nacimiento:
                </asp:TableCell><asp:TableCell>
                  <uc1:ctrlFecha ID="dtFecha" runat="server" />
               </asp:TableCell></asp:TableRow><asp:TableRow>
                <asp:TableCell>
                Sexo:
                </asp:TableCell><asp:TableCell>
                    <asp:RadioButton ID="rbtnMasculino" runat="server" Text="Masculino" OnCheckedChanged = "SeleccionMasculino" AutoPostBack="True" />
                    <asp:RadioButton ID="rbtnFemenino" runat="server" Text="Femenino"  OnCheckedChanged = "SeleccionFemenino" AutoPostBack="True" />
                </asp:TableCell></asp:TableRow><asp:TableRow>
                <asp:TableCell>
                Dirección:
                </asp:TableCell><asp:TableCell>
                    <asp:TextBox runat="server" ID="txtDireccion" TextMode="MultiLine" Width="320" />
                    <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" SkinID="Requerido"
                        ValidationGroup="v1" ControlToValidate="txtDireccion"></asp:RequiredFieldValidator>
                </asp:TableCell></asp:TableRow><%-- <asp:TableRow>
                <asp:TableCell>
                Teléfono:
                </asp:TableCell><asp:TableCell>
                    <asp:TextBox runat="server" ID="txtTelefono" Width="320" />
                    <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" SkinID="Requerido"
                        ValidationGroup="v1" ControlToValidate="txtTelefono"></asp:RequiredFieldValidator>
                </asp:TableCell></asp:TableRow>--%><asp:TableRow>
        </asp:TableRow>
        <asp:TableRow>
            <asp:TableCell>
               
            </asp:TableCell><asp:TableCell>
                <asp:ImageButton ID="Crear_Usuario" runat="server" ImageUrl="~/Images/btn_salvar.gif"
                    OnClick="Registrar" ValidationGroup="v1" />
                &nbsp;&nbsp;&nbsp;
                <asp:ImageButton ID="btnCancelar" runat="server" ImageUrl="~/Images/btn_cancelar.gif"
                    OnClick="Cancelar" />
            </asp:TableCell></asp:TableRow><asp:TableFooterRow Height="22">
            <asp:TableCell>
                
            </asp:TableCell><asp:TableCell>
                
            </asp:TableCell></asp:TableFooterRow></asp:Table></asp:Content>